FROM   singulax/ubuntu:14.04
MAINTAINER  root  <root.db.root@gmail.com>
# Install Redis.
RUN  apt-get  update  -y  && \
     apt-get  install   make  gcc  -y

RUN \
  cd /tmp && \
  wget http://download.redis.io/redis-stable.tar.gz && \
  tar xvzf redis-stable.tar.gz && \
  cd redis-stable && \
  make && \
  make install && \
  cp -f src/redis-sentinel /usr/local/bin && \
  mkdir -p /etc/redis 

ADD   redis.conf    /etc/redis/redis.conf

VOLUME ["/data"]

WORKDIR /data

EXPOSE 6379

CMD ["redis-server", "/etc/redis/redis.conf"]

